<?php  
//error reporting should be in local config.

//constants:
define ("CFG_BASE", $_SERVER["MDHOME"]);  // /home/ddelaute/public_html/mike
define ("CFG_BUSINESS", CFG_BASE . "business/");
define ("CFG_WEB", "http://mike.delauter.net/LotroGear/");
define( "CFG_LOGDIR", CFG_BASE . 'logs/');

require_once 'local/localconfig.php';
require_once 'lib.php';


function __autoload( $class_name)
{
	$class = CFG_BASE. 'live/' . $class_name . '.php';
	
	if ( strtolower(substr($class_name, 0,4)) == 'base')
	{
		$class =CFG_BASE. 'web/' . $class_name . '.php'; 
	}
	
	//echo "looking for $class<br>";
	include_once ($class) ;
}